package com.xinliu.fastchat.controller;


import com.xinliu.fastchat.domain.core.R;
import com.xinliu.fastchat.domain.vo.FriendVo;
import com.xinliu.fastchat.service.IFriendService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 心流
 * @since 2025-10-01
 */
@RestController
@RequestMapping("/fc-friend")
@RequiredArgsConstructor
public class FriendController {

    private final IFriendService iFriendService;

    //获取好友列表
    @GetMapping("friend-list")
    public R friendList() {
        List<FriendVo> list = iFriendService.friendList();
        return R.ok(list);
    }

}
